package com.yundasys.demo.web.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @author wenxy
 * @date 2020/11/26
 */
@RestController
@RequestMapping("/api/hello")
public class HelloWorldController {

    @GetMapping
    public String hello() {
        return "Hello World";
    }

    @GetMapping("/{word}")
    public String world(@PathVariable String word) {
        return "hello," + word;
    }

}
